/**
 * 下载文件
 * @param fileUrl 
 */
export async function downloadFile(fileUrl: string) {
  const eleLink = document.createElement('a');
  eleLink.style.display = 'none';
  eleLink.href = fileUrl;
  document.body.appendChild(eleLink);
  eleLink.click();
  document.body.removeChild(eleLink);
}

export default downloadFile;